﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HynuIOTA.Entity.FormatEntity
{
    /// <summary>
    /// Ajax 统一消息格式
    /// </summary>
    public class AjaxMessage
    {
        public AjaxMsgStatus Statu { get; set; }

        public string Msg { get; set; }

        public string BackUrl { get; set; }

        public object Data { get; set; }
    }

    public enum AjaxMsgStatus
    {
        /// <summary>
        /// 请求成功
        /// </summary>
        OK = 1,

        /// <summary>
        /// 请求失败
        /// </summary>
        Fail = 2,

        /// <summary>
        /// 请求错误
        /// </summary>
        Error = 3,

        /// <summary>
        /// 未登录
        /// </summary>
        NoLogin = 4,

        /// <summary>
        /// 没有权限
        /// </summary>
        NoPer = 5
    }
}
